package Lesson;

public class Car {
	public int speed;
	public String name;
	public String color;
	public void speedUp(int up){
		this.speed+=up;
	}
	public void speedDown(int down){
		this.speed-=down;
	}
	public void print(){
		System.out.println(this.name+" "+this.color+" "+this.speed);
	}

}
class Bus extends Car{
	static int l_people;
	int        c_people;
	public void customAdd(int add){
		this.c_people+=add;
		
	}
	public void customRedu(int redu){
		this.c_people-=redu;
	}
}
class SportsCar extends Car{
	double ngar;
	public void garAdd(int add){
		this.ngar+=add;
	}
}
class F_car{
	public static void main(String[] args) {
		Car c1=new Car();
		c1.color="blue";
		c1.name="Mesebense";
		c1.speed=50;
		c1.print();
	}
}